<template>
  <div class="son-page-container" :style="{ backgroundImage: `url(${website_bg_url})` }">
    <el-container class="main-container">
      <el-header height="10vh" class="header-container">
        <!-- 上部分内容 -->
      </el-header>
      <div class="spacer">
        <div class="content-nav">
          <div class="nav-right">
            <button class="nav-btn" @click="handleVideoLibrary">
              <el-icon class="btn-icon"><VideoCamera /></el-icon>
              视频库
            </button>
          </div>
        </div>
      </div>
      <el-main>
        <el-row :gutter="20">
          <el-col :span="4">
            <div class="area-container menu-container">
              <div class="sub-menu-title">视频模型</div>
              <div v-for="menu in page_menu_list" :key="menu.id" class="menu-item">
                <div class="parent-menu" @click="toggleMenu(menu)">
                  <span>{{ menu.name }}</span>
                  <el-icon class="expand-icon" :class="{ 'is-expanded': menu.isExpanded }">
                    <ArrowDown/>
                  </el-icon>
                </div>
                <div class="child-menu" v-show="menu.isExpanded">
                  <div 
                    v-for="child in menu.child" 
                    :key="child.id" 
                    class="child-item" 
                    :class="{ selected: selectedMenuId === child.id }"
                    @click="handleChildClick(child)"
                  >
                    {{ child.name }}
                  </div>
                </div>
              </div>
            </div>
          </el-col>
          <el-col :span="5">
            <div class="area-container center-area">
              <el-container class="center-container">
                <el-main class="center-top">
                  <div class="button-group">
                    <el-button 
                      :type="activeButton === 'keywords' ? 'primary' : 'default'"
                      @click="activeButton = 'keywords'"
                    >
                      关键词录入
                    </el-button>
                    <el-button 
                      :type="activeButton === 'original' ? 'primary' : 'default'"
                      @click="activeButton = 'original'"
                    >
                      原文录入
                    </el-button>
                  </div>
                  <div class="text-area-container" v-if="activeButton === 'keywords' && false">
                    <el-input
                      v-model="formData.keywordsContent"
                      type="textarea"
                      :rows="6"
                      placeholder="请输入产品名称和卖点：例如 楠火锅，川味火锅，鸳鸯锅、特色卤鸡脚"
                      class="text-area"
                    />
                  </div>
                  <div class="text-area-container" v-if="activeButton === 'original' && false">
                    <el-input
                      v-model="formData.originalContent"
                      type="textarea"
                      :rows="6"
                      placeholder="系统会根据你录入的原文案智能仿写字数和意思一样的文案"
                      class="text-area"
                    />
                    <div class="extract-link" @click="handleExtractText">
                      链接提取文案
                    </div>
                  </div>
                  <div class="text-area-container" v-if="false">
                    <el-form :model="formData" label-position="left" class="group-form">
                      <el-form-item label="城市" label-width="80px">
                        <el-input v-model="formData.groupCity" placeholder="请输入城市" />
                      </el-form-item>
                      <el-form-item label="店铺类型" label-width="80px">
                        <el-input v-model="formData.groupShopType" placeholder="请输入店铺类型" />
                      </el-form-item>
                      <el-form-item label="店铺名称" label-width="80px">
                        <el-input v-model="formData.groupShopName" placeholder="请输入店铺名称" />
                      </el-form-item>
                      <el-form-item label="套餐名称" label-width="80px">
                        <el-input v-model="formData.groupSetMenuName" placeholder="请输入套餐名称" />
                      </el-form-item>
                      <el-form-item label="套餐内容" label-width="80px">
                        <el-input v-model="formData.groupSetMenuContent" placeholder="请输入套餐内容" />
                      </el-form-item>
                      <el-form-item label="原价" label-width="80px">
                        <el-input v-model="formData.groupSetMenuPriceOld" placeholder="请输入原价" />
                      </el-form-item>
                      <el-form-item label="现价" label-width="80px">
                        <el-input v-model="formData.groupSetMenuPriceNew" placeholder="请输入现价" />
                      </el-form-item>
                      <el-form-item label="卖点" label-width="80px">
                        <el-input v-model="formData.groupSellingPoint" placeholder="请输入卖点" />
                      </el-form-item>
                    </el-form>
                  </div>
                  <div class="text-area-container" v-if="false">
                    <el-form :model="formData" label-position="left" class="group-form">
                      <el-form-item label="姓名" label-width="80px">
                        <el-input v-model="formData.personName" placeholder="请输入姓名" />
                      </el-form-item>
                      <el-form-item label="年龄" label-width="80px">
                        <el-input v-model="formData.personAge" placeholder="请输入年龄" />
                      </el-form-item>
                      <el-form-item label="家乡" label-width="80px">
                        <el-input v-model="formData.personHomeTown" placeholder="请输入家乡" />
                      </el-form-item>
                      <el-form-item label="城市" label-width="80px">
                        <el-input v-model="formData.personCity" placeholder="请输入城市" />
                      </el-form-item>
                      <el-form-item label="行业" label-width="80px">
                        <el-input v-model="formData.personIndustry" placeholder="请输入行业" />
                      </el-form-item>
                      <el-form-item label="店铺类型" label-width="80px">
                        <el-input v-model="formData.personShopType" placeholder="请输入店铺类型" />
                      </el-form-item>
                      <el-form-item label="店铺名称" label-width="80px">
                        <el-input v-model="formData.personShowName" placeholder="请输入店铺名称" />
                      </el-form-item>
                      <el-form-item label="工作年限" label-width="80px">
                        <el-input v-model="formData.personWorkInYear" placeholder="请输入工作年限" />
                      </el-form-item>
                      <el-form-item label="卖点" label-width="80px">
                        <el-input v-model="formData.personSellingPoint" placeholder="请输入卖点" />
                      </el-form-item>
                    </el-form>
                  </div>
                  <div class="text-area-container">
                    <el-form :model="formData" label-position="left" class="group-form">
                      <el-form-item label="城市" label-width="80px">
                        <el-input v-model="formData.screenshotCity" placeholder="请输入城市" />
                      </el-form-item>
                      <el-form-item label="店铺类型" label-width="80px">
                        <el-input v-model="formData.screenshotShopType" placeholder="请输入店铺类型" />
                      </el-form-item>
                      <el-form-item label="店铺名称" label-width="80px">
                        <el-input v-model="formData.screenshotShopName" placeholder="请输入店铺名称" />
                      </el-form-item>
                      <el-form-item label="礼品" label-width="80px">
                        <el-input v-model="formData.screenshotGift" placeholder="请输入礼品" />
                      </el-form-item>
                    </el-form>
                  </div>
                </el-main>
                <el-footer class="center-bottom">
                  <!-- 下部分内容 -->
                  <div class="sub-menu-title">素材上传</div>
                  <div class="upload-section">
                    <el-button type="primary" @click="handleUpload">上传素材</el-button>
                    <span class="selected-count">已选中0条数据</span>
                  </div>
                  <div class="sub-menu-title">生成数量</div>
                  <div class="generate-section">
                    <div class="counter-section">
                      <el-input-number 
                        v-model="generateCount" 
                        :min="0" 
                        :max="999"
                      />
                    </div>
                    <el-button type="primary" @click="handleGenerate">生成文案</el-button>
                  </div>
                </el-footer>
              </el-container>
            </div>
          </el-col>
          <el-col :span="15">
            <div class="area-container right-area">
              <!-- 右侧区域内容 -->
              <div class="title-row">
                <div class="menu-title">文案作用于视频内容和发布时标题</div>
                <div class="disclaimer-text">内容为AI生成，你可以自定义修改或增减，您对该内容的使用应严格遵循国家相关法律法规的规定</div>
              </div>
            </div>
          </el-col>
        </el-row>
      </el-main>
    </el-container>
  </div>
</template>

<script setup lang="ts">
import {onMounted, ref} from 'vue'
import axiosUtil from '../../axios-util/axios-util'
import {ArrowDown, VideoCamera} from '@element-plus/icons-vue'
import { useRouter } from 'vue-router'
import utils from '../../utils/utils';

//主题控制light  dark
const theme = utils.getTheme();
const router = useRouter()

// 网站背景图
const website_bg_url = ref('')
// 本页菜单
const page_menu_list = ref([])
// 当前激活的按钮
const activeButton = ref('keywords')
// 生成数量
const generateCount = ref(0)
// 当前选中的菜单ID
const selectedMenuId = ref(null)
// 当前展开的父菜单ID
const expandedMenuId = ref(null)
//form表单
const formData = ref({
    keywordsContent: '',
    originalContent: '',
    groupCity:'',
    groupShopType:'',
    groupShopName:'',
    groupSetMenuName:'',
    groupSetMenuContent:'',
    groupSetMenuPriceOld:'',
    groupSetMenuPriceNew:'',
    groupSellingPoint:'',
    personName:'',
    personAge:'',
    personHomeTown:'',
    personCity:'',
    personIndustry:'',
    personShopType:'',
    personShowName:'',
    personWorkInYear:'',
    personSellingPoint:'',
    screenshotCity:'',
    screenshotShopType:'',
    screenshotShopName:'',
    screenshotGift:''
})

// 切换菜单展开/收起
const toggleMenu = (menu: any) => {
  if (expandedMenuId.value === menu.id) {
    // 如果点击的是当前展开的菜单，则收起
    expandedMenuId.value = null
    menu.isExpanded = false
  } else {
    // 如果点击的是其他菜单，则收起当前展开的菜单，展开新点击的菜单
    expandedMenuId.value = menu.id
    // 将所有菜单设置为收起状态
    page_menu_list.value.forEach((item: any) => {
      item.isExpanded = item.id === menu.id
    })
  }
}

// 处理子菜单点击
const handleChildClick = (child: any) => {
  selectedMenuId.value = child.id
  console.log('子菜单点击:', child)
  // 这里添加子菜单点击的处理逻辑
}

// 处理提取文案
const handleExtractText = () => {
  // 这里添加提取文案的逻辑
  console.log('提取文案')
}

// 处理上传素材
const handleUpload = () => {
  console.log('上传素材')
}

// 处理生成文案
const handleGenerate = () => {
  console.log('生成文案，数量：', generateCount.value)
}

// 处理视频库点击
const handleVideoLibrary = () => {
  router.push('/videoWarehouse')
}

onMounted(() => {
  initWebsiteBgUrl()
  initPageMenuList()
})

//读取配置，获取网站背景图
const initWebsiteBgUrl = async () => {
  const response = await axiosUtil.post('api/pc/site/get_agent_config', {})
  if (response.data.code === 0 && response.data.data) {
    website_bg_url.value = import.meta.env.VITE_APP_SERVER + response.data.data.website_bg || ''
  }
}

// 获取本页菜单
const initPageMenuList = async () => {
  const response = await axiosUtil.post('api/storeintopieces/classifylist', {})
  if (response.data.code === 1 && response.data.data) {
    page_menu_list.value = response.data.data
  }
}
</script>

<style scoped>
.son-page-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.main-container {
  height: 100vh;
  width: 100%;
  backdrop-filter: blur(5px);
}

.header-container {
  padding: 0;
  width: 100%;
  background: v-bind('theme === "light" ? "rgba(255, 255, 255, 0.1)" : "rgba(0, 0, 0, 0.3)"');
  backdrop-filter: blur(10px);
  border-bottom: 1px solid v-bind('theme === "light" ? "rgba(255, 255, 255, 0.2)" : "rgba(0, 0, 0, 0.4)"');
  box-shadow: 0 4px 6px v-bind('theme === "light" ? "rgba(0, 0, 0, 0.1)" : "rgba(0, 0, 0, 0.3)"');
}

.el-main {
  padding: 20px;
  height: 85vh;
  overflow-x: hidden;
}

.el-row {
  height: 100%;
  margin: 0 !important;
}

.el-col {
  height: 100%;
}

.area-container {
  height: 100%;
  background: v-bind('theme === "light" ? "rgba(255, 255, 255, 0.1)" : "rgba(0, 0, 0, 0.3)"');
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid v-bind('theme === "light" ? "rgba(255, 255, 255, 0.2)" : "rgba(0, 0, 0, 0.4)"');
  box-shadow: 0 4px 6px v-bind('theme === "light" ? "rgba(0, 0, 0, 0.1)" : "rgba(0, 0, 0, 0.3)"');
  transition: all 0.3s ease;
  padding: 15px;
}

.area-container:hover {
  background: v-bind('theme === "light" ? "rgba(255, 255, 255, 0.15)" : "rgba(0, 0, 0, 0.4)"');
  box-shadow: 0 6px 12px v-bind('theme === "light" ? "rgba(0, 0, 0, 0.15)" : "rgba(0, 0, 0, 0.4)"');
  border-color: v-bind('theme === "light" ? "rgba(255, 255, 255, 0.3)" : "rgba(0, 0, 0, 0.5)"');
}

.menu-container {
  overflow-y: auto;
}

.menu-title {
  color: v-bind('theme === "light" ? "rgba(0, 0, 0, 0.8)" : "#fff"');
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  padding: 0;
  margin: 0;
  border: none;
}

.sub-menu-title {
  color: v-bind('theme === "light" ? "rgba(0, 0, 0, 0.8)" : "#fff"');
  font-size: 16px;
  font-weight: 500;
  padding: 10px 0;
  margin-bottom: 10px;
  text-align: left;
  border-bottom: 1px solid v-bind('theme === "light" ? "rgba(255, 255, 255, 0.2)" : "rgba(0, 0, 0, 0.4)"');
}

.center-area, .right-area {
  min-height: 70vh;
}

.menu-container::-webkit-scrollbar {
  width: 6px;
}

.menu-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.menu-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.menu-item {
  margin-bottom: 15px;
}

.parent-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background: v-bind('theme === "light" ? "rgba(255, 255, 255, 0.1)" : "rgba(0, 0, 0, 0.3)"');
  backdrop-filter: blur(10px);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid v-bind('theme === "light" ? "rgba(255, 255, 255, 0.2)" : "rgba(0, 0, 0, 0.4)"');
  color: v-bind('theme === "light" ? "rgba(0, 0, 0, 0.8)" : "#fff"');
  font-weight: 500;
  box-shadow: 0 4px 6px v-bind('theme === "light" ? "rgba(0, 0, 0, 0.1)" : "rgba(0, 0, 0, 0.3)"');
}

.parent-menu:hover {
  background: v-bind('theme === "light" ? "rgba(255, 255, 255, 0.2)" : "rgba(0, 0, 0, 0.4)"');
  transform: translateY(-2px);
  box-shadow: 0 6px 12px v-bind('theme === "light" ? "rgba(0, 0, 0, 0.15)" : "rgba(0, 0, 0, 0.4)"');
}

.expand-icon {
  transition: transform 0.3s ease;
  color: #fff;
}

.expand-icon.is-expanded {
  transform: rotate(180deg);
}

.child-menu {
  margin-top: 8px;
  padding: 5px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.child-item {
  padding: 10px 15px;
  margin: 8px 0;
  background: v-bind('theme === "light" ? "rgba(255, 255, 255, 0.1)" : "rgba(0, 0, 0, 0.3)"');
  backdrop-filter: blur(10px);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid v-bind('theme === "light" ? "rgba(255, 255, 255, 0.2)" : "rgba(0, 0, 0, 0.4)"');
  color: v-bind('theme === "light" ? "rgba(0, 0, 0, 0.8)" : "#fff"');
  font-size: 0.95em;
  text-align: center;
  box-shadow: 0 2px 4px v-bind('theme === "light" ? "rgba(0, 0, 0, 0.1)" : "rgba(0, 0, 0, 0.3)"');
}

.child-item:hover {
  background: v-bind('theme === "light" ? "rgba(255, 255, 255, 0.2)" : "rgba(0, 0, 0, 0.4)"');
  transform: translateY(-2px);
  box-shadow: 0 4px 8px v-bind('theme === "light" ? "rgba(0, 0, 0, 0.15)" : "rgba(0, 0, 0, 0.4)"');
  border-color: v-bind('theme === "light" ? "rgba(255, 255, 255, 0.4)" : "rgba(0, 0, 0, 0.5)"');
}

.child-item:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.child-item.selected {
  background: rgba(64, 158, 255, 0.3);
  border-color: rgba(64, 158, 255, 0.5);
  color: #fff;
  box-shadow: 0 4px 8px rgba(64, 158, 255, 0.2);
}

.center-container {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.center-top {
  height: 60%;
  padding: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.center-bottom {
  height: 40%;
  padding: 10px;
  border-top: 1px solid v-bind('theme === "light" ? "rgba(255, 255, 255, 0.2)" : "rgba(0, 0, 0, 0.4)"');
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.center-bottom::-webkit-scrollbar {
  width: 6px;
}

.center-bottom::-webkit-scrollbar-thumb {
  background: v-bind('theme === "light" ? "rgba(255, 255, 255, 0.3)" : "rgba(0, 0, 0, 0.4)"');
  border-radius: 3px;
}

.center-bottom::-webkit-scrollbar-track {
  background: v-bind('theme === "light" ? "rgba(255, 255, 255, 0.1)" : "rgba(0, 0, 0, 0.2)"');
}

.button-group {
  display: flex;
  gap: 0;
  background: v-bind('theme === "light" ? "rgba(0, 0, 0, 0.1)" : "rgba(0, 0, 0, 0.4)"');
  padding: 4px;
  border-radius: 6px;
  box-shadow: inset 0 2px 4px v-bind('theme === "light" ? "rgba(0, 0, 0, 0.1)" : "rgba(0, 0, 0, 0.3)"');
  margin-bottom: 15px;
  flex-shrink: 0;
}

.button-group .el-button {
  border-radius: 0;
  margin: 0;
  flex: 1;
  height: 40px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  background: transparent;
  color: v-bind('theme === "light" ? "rgba(0, 0, 0, 0.8)" : "rgba(255, 255, 255, 0.8)"');
}

.button-group .el-button:first-child {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.button-group .el-button:last-child {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.button-group .el-button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.button-group .el-button.el-button--primary {
  background: rgba(64, 158, 255, 0.2);
  color: v-bind('theme === "light" ? "rgba(0, 0, 0, 0.8)" : "#fff"');
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.button-group .el-button.el-button--primary:hover {
  background: rgba(64, 158, 255, 0.3);
}

.button-group .el-button.el-button--default {
  background: transparent;
  color: v-bind('theme === "light" ? "rgba(0, 0, 0, 0.8)" : "rgba(255, 255, 255, 0.8)"');
}

.button-group .el-button.el-button--default:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.text-area-container {
  position: relative;
  width: 100%;
  background: v-bind('theme === "light" ? "rgba(255, 255, 255, 0.05)" : "rgba(0, 0, 0, 0.2)"');
  border-radius: 8px;
  padding: 2px;
  box-shadow: inset 0 2px 4px v-bind('theme === "light" ? "rgba(0, 0, 0, 0.1)" : "rgba(0, 0, 0, 0.3)"');
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
  overflow-y: auto;
}

.text-area-container::-webkit-scrollbar {
  width: 6px;
}

.text-area-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.text-area-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.extract-link {
  position: absolute;
  right: 10px;
  bottom: 10px;
  color: rgba(64, 158, 255, 0.8);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
  z-index: 1;
}

.extract-link:hover {
  color: #409EFF;
  background: rgba(64, 158, 255, 0.1);
}

.text-area {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.text-area :deep(.el-textarea__inner) {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: v-bind('theme === "light" ? "rgba(0, 0, 0, 0.8)" : "#fff"');
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  font-size: 14px;
  line-height: 1.5;
  height: 100% !important;
  resize: none;
}

.text-area :deep(.el-textarea__inner:focus) {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.text-area :deep(.el-textarea__inner::placeholder) {
  color: v-bind('theme === "light" ? "rgba(0, 0, 0, 0.6)" : "rgba(255, 255, 255, 0.6)"');
}

.group-form {
  padding: 15px;
  height: 100%;
}

.group-form :deep(.el-form-item) {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.group-form :deep(.el-form-item__label) {
  color: v-bind('theme === "light" ? "rgba(0, 0, 0, 0.8)" : "rgba(255, 255, 255, 0.8)"');
  font-size: 14px;
  padding-right: 12px;
  text-align: right;
}

.group-form :deep(.el-form-item__content) {
  flex: 1;
}

.group-form :deep(.el-input__inner) {
  background: v-bind('theme === "light" ? "rgba(255, 255, 255, 0.1)" : "rgba(0, 0, 0, 0.3)"');
  border: 1px solid v-bind('theme === "light" ? "rgba(255, 255, 255, 0.2)" : "rgba(0, 0, 0, 0.4)"');
  color: v-bind('theme === "light" ? "rgba(0, 0, 0, 0.8)" : "#fff"');
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  font-size: 14px;
  line-height: 1.5;
  height: 36px;
  padding: 0 12px;
  border-radius: 6px;
}

.group-form :deep(.el-input__inner:hover) {
  border-color: v-bind('theme === "light" ? "rgba(255, 255, 255, 0.3)" : "rgba(0, 0, 0, 0.5)"');
  background: v-bind('theme === "light" ? "rgba(255, 255, 255, 0.15)" : "rgba(0, 0, 0, 0.4)"');
}

.group-form :deep(.el-input__inner:focus) {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(64, 158, 255, 0.5);
  box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
}

.group-form :deep(.el-input__inner::placeholder) {
  color: v-bind('theme === "light" ? "rgba(0, 0, 0, 0.5)" : "rgba(255, 255, 255, 0.5)"');
}

.group-form :deep(.el-input__wrapper) {
  background: transparent !important;
  box-shadow: none !important;
}

.group-form :deep(.el-input__wrapper.is-focus) {
  box-shadow: none !important;
}

.group-form :deep(.el-input) {
  --el-input-bg-color: transparent;
  --el-input-border-color: transparent;
  --el-input-hover-border-color: transparent;
  --el-input-focus-border-color: transparent;
}

.upload-section {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  padding: 10px 0;
}

.selected-count {
  color: v-bind('theme === "light" ? "rgba(0, 0, 0, 0.8)" : "rgba(255, 255, 255, 0.8)"');
  font-size: 14px;
}

.generate-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 10px 0;
  flex: 1;
  align-items: flex-start;
}

.counter-section {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

.generate-button {
  width: auto;
  height: 32px;
  margin-top: 15px;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 0;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.disclaimer-text {
  color: v-bind('theme === "light" ? "rgba(0, 0, 0, 0.6)" : "rgba(255, 255, 255, 0.6)"');
  font-size: 13px;
  line-height: 1.5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.spacer {
  height: 5vh;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0 20px;
  margin-top: 3vh;
}

.content-nav {
  height: 60px;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 20px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.nav-right {
  display: flex;
  align-items: center;
}

.nav-btn {
  background: v-bind('theme === "light" ? "rgba(255, 255, 255, 0.1)" : "rgba(0, 0, 0, 0.3)"');
  border: 1px solid v-bind('theme === "light" ? "rgba(255, 255, 255, 0.2)" : "rgba(0, 0, 0, 0.4)"');
  color: v-bind('theme === "light" ? "rgba(0, 0, 0, 0.8)" : "#fff"');
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-btn:hover {
  background: v-bind('theme === "light" ? "rgba(255, 255, 255, 0.2)" : "rgba(0, 0, 0, 0.4)"');
  border-color: v-bind('theme === "light" ? "rgba(255, 255, 255, 0.3)" : "rgba(0, 0, 0, 0.5)"');
  box-shadow: 0 0 10px v-bind('theme === "light" ? "rgba(255, 255, 255, 0.2)" : "rgba(0, 0, 0, 0.3)"');
}

.btn-icon {
  font-size: 16px;
}
</style>
